<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">

<head><title>Viewing statistic</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <link href="css/common.css" rel="stylesheet" type="text/css">
</head>

<body>
<f:view>
    <f:loadBundle basename="ResourceBundle" var="bundle"/>
    <h:form id="audioContentForm">
        <div id="external">
            <div id="menu">
                <h:outputText value="#{bundle.menu_title}"/>
                <br>
                <%@ include file="menu.jsp" %>
            </div>
            <div id="languages">
                <div class="internal-languages">
                    <strong>
                        <h:commandLink value="EN"/>
                        <h:commandLink value="HI"/>
                        <h:commandLink value="TAM"/>
                    </strong>
                </div>
            </div>


            <div id="content">
                <div id="title"> ${bundle.viewing_statistic_header}</div>

                <div style="position: absolute;left: 2%; top: 5%; width: 30%; height: 30%">
                    <img src="images/UserStatistic.png" alt="текст">
                </div>
                <div style="position:absolute; left: 60%; top: 5%; width: 35%; height: 43%; background: #7ccff5">
                    <div style="position: absolute;top: 5%;left: 35%;">
                        <h:outputText value="Text description"/>
                    </div>
                    <div style="position: absolute;top:15%;left: 5%; right: 5%;bottom: 20%; background: #fefefe">
                        <div style="position: absolute;top:40%;left: 15%;">
                            <h:outputText value="The written display data from the chart"/>
                        </div>
                    </div>

                    <div style="position: absolute;bottom: 2%; width:98%">
                        <h:commandButton value="#{bundle.convert_save_button}" style="width: 100%"/>
                    </div>
                </div>

                <div style="position:absolute; top:50%; height: 10%; left: 2%; width: 46%; background-color: #7ccff5;">
                    <br>
                    <h:outputText value="#{bundle.find_by_user_id}"/>
                    <h:inputText value="#{audioContentBean.filterId}" style="width: 50px"/>
                    <h:commandButton value="#{bundle.ok_button}"
                                     actionListener="#{audioContentBean.findAudioContentById}"/>

                    <br>
                    <h:outputText value="#{bundle.find_by_ad_ID}"/>
                    <h:inputText value="#{audioContentBean.filterName}"/>
                    <h:commandButton value="#{bundle.ok_button}"
                                     actionListener="#{audioContentBean.findAudioContentByName}"/>
                </div>

                <div style="position:absolute; left: 2%; top:50%; height: 10%; right: 2%;width: 46%; background-color:  #7ccff5; text-align: left;">
                    &nbsp; <h:outputText value="#{bundle.begin_date}"/>
                    <h:inputText/>
                    <br>
                    &nbsp; <h:outputText value="#{bundle.end_date}"/>
                    &nbsp; <h:inputText/>
                    <br>
                    &nbsp; <h:commandButton value="#{bundle.ok_button}"/>
                </div>

                <div style="position: absolute;float: left; background-color:#7ccff5; bottom: 21%; height: 17%;left:2%;width: 46%;">
                    &nbsp;<strong><h:outputText value="#{bundle.choosing_by_category}"/></strong>

                    <div style="height:60%; overflow-y:scroll; word-wrap:break-word; vertical-align: middle;">
                        <h:panelGrid columns="2">
                            <h:selectManyCheckbox layout="pageDirection"
                                                  value="#{viewingStatisticBean.chosenFilterCategories}">
                                <f:selectItems value="#{viewingStatisticBean.categories}"/>
                            </h:selectManyCheckbox>
                        </h:panelGrid>
                    </div>
                    <div style="height:20pt">
                        <h:panelGrid columns="2">
                            <h:commandButton value="#{bundle.checkAllButton}"
                                             actionListener="#{viewingStatisticBean.checkAllCategories}"/>
                            <h:commandButton value="#{bundle.uncheckAllButton}"
                                             actionListener="#{viewingStatisticBean.clearAllCategories}"/>
                        </h:panelGrid>
                    </div>
                </div>

                <div style=" position: absolute;float: left;background-color:#7ccff5; bottom: 21%; height: 17%;right:2%; width: 46%;">
                    &nbsp;<strong><h:outputText value="#{bundle.choosing_by_content_type}"/></strong>
                    <h:selectManyCheckbox layout="pageDirection" style="width: 100%">
                        <f:selectItems value="#{contentBaseBean.contents}"/>
                    </h:selectManyCheckbox>
                </div>


                <div style="position: absolute;float: left; background-color:#7ccff5; bottom: 2%; height: 17%;left:2%;width: 46%;">
                    &nbsp;<strong><h:outputText value="#{bundle.choosing_by_group}"/></strong>

                    <div style="height:60%; overflow-y:scroll; word-wrap:break-word; vertical-align: middle;">
                        <h:panelGrid columns="2">
                            <h:selectManyCheckbox layout="pageDirection"
                                                  value="#{viewingStatisticBean.chosenFilterGroups}"
                                                  style="width: 100%">
                                <f:selectItems value="#{viewingStatisticBean.groups}"/>
                            </h:selectManyCheckbox>
                        </h:panelGrid>
                    </div>
                    <div style="height:20pt">
                        <h:panelGrid columns="2">
                            <h:commandButton value="#{bundle.checkAllButton}"
                                             actionListener="#{viewingStatisticBean.checkAllGroups}"/>
                            <h:commandButton value="#{bundle.uncheckAllButton}"
                                             actionListener="#{viewingStatisticBean.clearAllGroups}"/>
                        </h:panelGrid>
                    </div>
                </div>

                <div style=" position: absolute;float: left;background-color:#7ccff5; bottom: 2%; height: 17%;right:2%; width: 46%;">
                    &nbsp;<strong><h:outputText value="#{bundle.choosing_by_region}"/></strong>

                    <div style="height:60%; overflow-y:scroll; word-wrap:break-word">
                        <h:panelGrid columns="2">
                            <h:selectManyCheckbox layout="pageDirection"
                                                  value="#{viewingStatisticBean.chosenFilterRegions}">
                                <f:selectItems value="#{viewingStatisticBean.regions}"/>
                            </h:selectManyCheckbox>
                        </h:panelGrid>
                    </div>
                    <div style="height:20pt">
                        <h:panelGrid columns="2">
                            <h:commandButton value="#{bundle.checkAllButton}"
                                             actionListener="#{viewingStatisticBean.checkAllRegions}"/>
                            <h:commandButton value="#{bundle.uncheckAllButton}"
                                             actionListener="#{viewingStatisticBean.clearAllRegions}"/>
                        </h:panelGrid>
                    </div>
                </div>
            </div>
        </div>
    </h:form>
</f:view>
</body>
</html>
